mq_connectiontest:mq_connectiontest.cc ../mqcommon/mq_msg.pb.cc ../mqcommon/mq_proto.pb.cc
	g++ -o $@ $^ -std=c++11 -lgtest -lprotobuf -lsqlite3  -g -lpthread -I../mqthird/include/

mq_channeltest:mq_channeltest.cc ../mqcommon/mq_msg.pb.cc ../mqcommon/mq_proto.pb.cc
	g++ -o $@ $^ -std=c++11 -lgtest -lprotobuf -lsqlite3  -g -lpthread -I../mqthird/include/

mq_consumertest:mq_consumertest.cc ../mqcommon/mq_msg.pb.cc
	g++ -o $@ $^ -std=c++11 -lgtest -lprotobuf -lsqlite3  -g -lpthread

mq_routetest:mq_routetest.cc ../mqcommon/mq_msg.pb.cc
	g++ -o $@ $^ -std=c++11 -lgtest -lprotobuf -lsqlite3  -g -lpthread

mq_hosttest:mq_hosttest.cc ../mqcommon/mq_msg.pb.cc
	g++ -o $@ $^ -std=c++11 -lgtest -lprotobuf -lsqlite3  -g -lpthread

mq_messagetest:mq_messagetest.cc ../mqcommon/mq_msg.pb.cc
	g++ -o $@ $^ -std=c++11 -lgtest -lprotobuf -lsqlite3  -g -lpthread

mq_bindingtest:mq_bindingtest.cc
	g++ -o $@ $^ -std=c++11 -lgtest -lprotobuf -lsqlite3 

mq_msgqueuetest:mq_msgqueuetest.cc
	g++ -o $@ $^ -std=c++11 -lgtest -lprotobuf -lsqlite3 

mq_exchangetest:mq_exchangetest.cc
	g++ -o $@ $^ -std=c++11 -lgtest -lprotobuf -lsqlite3 

filetest:mq_filetest.cc
	g++ -o $@ $^ -std=c++11

clean:
	rm -rf filetest mq_exchangetest mq_msgqueuetest mq_bindingtest mq_messagetest mq_hosttest mq_routetest mq_consumertest mq_channeltest mq_connectiontest